package com.lianyi.push.share;

/**
 * Created by leilei on 2018/3/28.
 */

public class ConstantValue {
    public static final int TCP_RECEIVE_SIZE = 1024 * 1024;
    public static final int HEAD_DATA = 0X76;
    public static final int TCP_PORT = 9897;
    public static final int UDP_PORT = 9898;
    public static final int TCP_CONNECT_COUNT = 5;//TCP断开连接重连次数
    public static final int TCP_CONNECT_AGAIN = 3;//TCP连接失败重连次数
    public static final int TCP_SO_BACKLOG = 128;//TCP保持连接数
    public static final int TCP_MAX_COUNT = 30;//TCP最大线程数
    public static final String UDP_HOSTNAME = "255.255.255.255";
    public static final String TCP_HEART_DATE = "TCP_HEART_DATE";//TCP消息(心跳包)
    public static final String TCP_BODY_DATE = "TCP_BODY_DATE";//TCP消息(内容)
    public static final String UDP_MESSAGE_TAG = "UDP_MESSAGE_TAG";//UDP消息标记(必传参数)
    public static final String UDP_HEAD_TAG = "UDP_HEAD_TAG";    //udp请求头标记
    public static final String UDP_MESSAGE_DOCTOR = "UDP_MESSAGE_DOCTOR";//获取医生名称
    public static final String UDP_MESSAGE_GET_IP = "UDP_MESSAGE_GET_IP";//获取局域网ip地址
    public static final String UDP_MESSAGE_IS_MAIN = "UDP_MESSAGE_IS_MAIN";//是否为主机
    public static final String UDP_MESSAGE_UP_DATE = "UDP_MESSAGE_UP_DATE";//主机发送UDP请求子平板数据
    public static final String UDP_MESSAGE_HOSPITAL_NAME = "UDP_MESSAGE_HOSPITAL_NAME";//医院名称
    public static final String TCP_CLIENT_MESSAGE = "TCP_CLIENT_MESSAGE";
    public static final String TCP_SERVICE_MESSAGE = "TCP_SERVICE_MESSAGE";
    public static final String UDP_CLIENT_MESSAGE = "UDP_CLIENT_MESSAGE";

}
